package com.fly.lambda.domain;

import com.sun.istack.internal.NotNull;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Fly on 2016/7/29.
 */
@Entity
@Table(name = "t_message_info")
public class Message {

    @Id
    @Column(name = "message_id")
    private String messageId;   //留言id

    @Column(name = "name")
    @NotNull
    private String name;        //留言人姓名

    @Column(name = "email")
    private String email;       //留言人邮箱

    @Column(name = "phone_number")
    private String phoneNumber;   //留言人电话

    @Column(name = "message_content")
    private String massageContent;  //留言内容

    @Column(name = "is_read")
    private String isRead;      //是否已读

    public final static String READ_YES = "yes";    //已读
    public final static String READ_NO = "no";      //未读

    @Column(name = "create_time")
    private String createTime;  //留言时间

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getMassageContent() {
        return massageContent;
    }

    public void setMassageContent(String massageContent) {
        this.massageContent = massageContent;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
